/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.dormitoryfiee.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍费用Entity
 * @author 冉鑫
 * @version 2017-04-05
 */
public class DmsDormitoryFee extends DataEntity<DmsDormitoryFee> {
	
	private static final long serialVersionUID = 1L;
	private String dormitoryNumber;		// 宿舍号
	private Date checkDate;		// 检查日期
	private String hydropowerFee;		// 水电费
	private String otherFee;		// 其它费用
	
	public DmsDormitoryFee() {
		super();
	}

	public DmsDormitoryFee(String id){
		super(id);
	}

	@Length(min=1, max=20, message="宿舍号长度必须介于 1 和 20 之间")
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}
	
	@Length(min=0, max=25, message="水电费长度必须介于 0 和 20 之间")
	public String getHydropowerFee() {
		return hydropowerFee;
	}

	public void setHydropowerFee(String hydropowerFee) {
		this.hydropowerFee = hydropowerFee;
	}
	
	@Length(min=0, max=20, message="其它费用长度必须介于 0 和 20 之间")
	public String getOtherFee() {
		return otherFee;
	}

	public void setOtherFee(String otherFee) {
		this.otherFee = otherFee;
	}
	
}